using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
//using Toenda.TFL.Data;
using Toenda.Rails.System;
using Toenda.Rails.DataContainer;

public partial class Controls_Main_ctrl_cameras : System.Web.UI.UserControl {
	private AccountProvider ap = new AccountProvider();
	private ImageProvider ip = new ImageProvider();

	protected void Page_Load(object sender, EventArgs e) {
		List<Camera> list = this.ip.GetTopTenCameraList();

		this.gvCams.DataSource = list;
		this.gvCams.DataBind();
		
		//foreach(Camera cam in list) {
		//    HyperLink link = new HyperLink();
		//    link.CssClass = "";
		//    link.Style.Add(HtmlTextWriterStyle.FontSize, "20px");
		//    link.Text = cam.Maker + " " + cam.Model;
		//    link.NavigateUrl = "~/search.aspx?cam=" + cam.Model;
		//    link.NavigateUrl += "&target=a&type=1";

		//    plcTopTen.Controls.Add(link);
		//    plcTopTen.Controls.Add(new LiteralControl(" "));
		//}
	}
}
